#ifndef EMAIL_ATTRIBUTION_H
#define EMAIL_ATTRIBUTION_H

#include <QString>
#include <QXmlStreamWriter>
#include "EmailParsePattern.h"

namespace email{

	class Attribution
	{
	private:
		bool iserror;
	public:
		Attribution(){iserror = true;}
		bool getIsError(){return iserror;}
		void setIsError(bool iserror) {this->iserror = iserror;}
		virtual void parse(QString str) = 0;
		virtual QString toString() = 0;
		virtual void toDisplayString(QXmlStreamWriter & writer) = 0;
		virtual void toXMLString(QXmlStreamWriter & writer) = 0;
	};

}

#endif